package ui.nav;
import easelhx.display.Container;
import easelhx.display.Shadow;
import easelhx.display.Shape;
import easelhx.display.Stage;
import easelhx.display.Text;
import js.DomCanvas;
import js.Lib;
import tools.ASprite;

/**
 * ...
 * @author PRASS
 */

class NavItem extends ASprite
{
	public var navID	: String;
	
	private var _lbl 	: Text;
	private var selected : Bool;
			
	private var canvas 	: DomCanvas;
	private var stage 	: Stage;
	private var bg		: Shape;
	
	public function new(_id : String, _cnv : String, _text : String ) 
	{
		super(new JQuery(_id), _id);
		selected = false;

		var html : String = _text;
		dom.append(html);
	}
	
	public function select() : Void
	{
		selected = true;
		dom.addClass("navSelect");
		if (Lib.isIE) dom.css("color", "#FC0"); 
	}
	
	public function unselect() : Void
	{
		selected = false;
		dom.removeClass("navSelect");
		if (Lib.isIE) dom.css("color", "#FFF"); 
	}
	
	
}